package org.jash.attendance.entity

import androidx.databinding.ObservableField
import java.text.SimpleDateFormat
import java.util.Date

private val sdf = SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
data class SignEntity(
    val signId: Int,
    val signLat: Double,
    val signLong: Double,
    val signTime: Long,
    val signUserId: Int
) {
    constructor() : this(0, 0.0,0.0,0,0)
    fun getTimeString(): String = sdf.format(Date(signTime))
    val address: ObservableField<String> = ObservableField("天津")
}